{/* LAYOUT模板 */}
<layout name="layout"/>
{/* LAYOUT模板 */}
{/* import Js,Css */}
<js href="__PUBLIC__/js/admin/listTable.js"/>
<js href="__PUBLIC__/js/admin/js.util.js"/>
<css href="__PUBLIC__/css/admin/common.css"/>
<css href="__PUBLIC__/css/qs-table-1.0.css"/>	
<js href="__PUBLIC__/js/admin/js.selectzone.js"/>
<css href="__PUBLIC__/css/jquery-ui.css" />
<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}

<include file="Template:position"/>

<form method="post" action="" name="listForm">
	<input type="hidden" name="goods_id" value="{$goods_id}" />
	<div class="list-div" id="listDiv">
		<table id="retail-list-table" class="qs-table" cellpadding="3" cellspacing="1" width="100%">
			<tr class="qs-header">
				<th class="first">&nbsp;编号</th>
				<th>
					<a href="javascript:listTable.sort('card_name');">代理商名称</a>{$sort_card_name}
				</th>
				<th>
					<a href="javascript:listTable.sort('card_fee');">图片</a>{$sort_card_fee}
				</th>
				<th>
					<a href="javascript:listTable.sort('free_money');">国家</a>{$sort_free_money}
				</th>
				<th>
					<a href="javascript:listTable.sort('free_money');">省份</a>{$sort_free_money}
				</th>
				<th>
					<a href="javascript:listTable.sort('free_money');">市/县</a>{$sort_free_money}
				</th>
				<th>
					<a href="javascript:listTable.sort('free_money');">区</a>{$sort_free_money}
				</th>
				<th>
					<a href="javascript:listTable.sort('free_money');">详细地址</a>{$sort_free_money}
				</th>
				<th>
					简介
				</th>
				
				<th>
					排序
				</th>
				<th class="last">
					操作
					<div>
						<a href="{:U('retail/add_retail')}" style="color:#fff;cursor:pointer;">[+]添加</a>
					</div>
				</th>
			</tr>	
			<volist name="retail_list" id="retail">
			<tr id="tr_{$retail.id}" class="data">
				<td align="center" class="first">	
					{$retail.id}
				</td>
				<td align="left">
					{$retail.name}
				</td>
				<td align="right">
					<if condition="$retail['thumb_img'] neq ''">
						<img src="__UPLOAD__/images/{$retail.thumb_img}" width="30px" height="30px"/>
					<else/>
						<div style="color:red;">暂时无图片</div>
					</if>
				</td>
				<td align="center">
					{$retail.country}
				</td>
				<td align="center">
					{$retail.province}
				</td>
				<td align="center">
					{$retail.city}
				</td>
				<td align="center">
					{$retail.district}
				</td>
				<td align="center">
					{$retail.area}
				</td>
				<td align="center">
					{$retail.description}
				</td>
				<td align="center">
					{$retail.sort}
				</td>
				<td align="center" nowrap="true" valign="top">
					<a href="__URL__/mod_retail?id={$retail.id}" title="编辑">
						<img src="__PUBLIC__/Image/admin/icon_edit.gif" border="0" height="16" width="16">
					</a>
					<a href="__URL__/del_retail?id={$retail.id}" onclick="listTable.remove({$retail.id}, '确定删除')" title="移除">
						<img src="__PUBLIC__/Image/admin/icon_drop.gif" border="0" height="16" width="16">
					</a>
				</td>
			</tr>
			</volist>			
		</table>
	</div>
</form>

<script>
$(document).ready(function(){
	$('#retail-list-table').tableUI();
	//listTable.init('__URL__/ajax_article');
});
</script>